import request from "@/router/requer.js";

// 市场
export function vanilla(data) {
  return request({
    url: "/api/stock/index",
    method: "get",
    params: data,
  });
}

//表头
export function saveTableHead(data) {
  return request({
    url: "/api/stock/save_table_head",
    method: "post",
    data
  });
}
//加自选
export function save_user_stock(data) {
  return request({
    url: "/api/user_stock/save_user_stock",
    method: "post",
    data
  });
}

//指数
export function zhishu(data) {
  return request({
    url: "/api/stock_index/zhishu",
    method: "get",
    params: data
  });
}

//板块
export function tonghuashun(data) {
  return request({
    url: "/api/stock_index/tonghuashun",
    method: "get",
    params: data
  });
}

export function plate(data) {
  return request({
    url: "/api/stock_index/plate",
    method: "get",
    params: data
  });
}
